class Queue(object):
	def __init__(self, list = []):
		self.queue = []
		for i in list:
			self.enqueue(i)
	def enqueue(self, item):
		self.queue.append(item)
	def dequeue(self):
		print self.queue[0]
		self.queue.remove(self.queue[0])
	def length(self):
		return len(self.queue)
	def first(self):
		return self.queue[0]
	def printQueue(self):
		print self.queue
